package com.xiaoke.service.impl;

import com.xiaoke.entity.Banner;
import com.xiaoke.mapper.BannerMapper;
import com.xiaoke.service.BannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
@Service
public class BannerServiceImpl implements BannerService {
    @Autowired
    private BannerMapper bannerMapper;

    public List<Banner> findByShop(@RequestParam("shopId") String shopId){
        return bannerMapper.findByShop(shopId);
    }
}
